
<h1>Artikel anlegen</h1>
<div class="addFormContainer" id="addArticle">
    <form action="./index.php?fnc=article" method="post">
        <label>Name(de)</label><input type="text" name="name_de" /><br />
        <label>Name(cn)</label><input type="text" name="name_cn" /><br />
        <label>EBAN</label><input type="text" name="ean" /><br />
        <input type="hidden" name="action" value="add" />
        <label></label><input value="Anlegen" type="submit" />
    </form>
</div>
<?php echo $this->getTplVar('msg'); ?>
<h1>Artikel List</h1>
<div class="editFormContainer" id="editArticle">
    <form action="./index.php?fnc=article" method="post">

        <?php
        $length1 = 10;
        $length2 = 30;
        ?>

        <table class="articleList">
            <tbody>
            <tr>
                <td width="<?php echo $length1; ?>%" valign="top">
                    <div>&nbsp;</div>
                </td>
                <td width="<?php echo $length2; ?>%" valign="top">
                    <div><strong>EAN</strong></div>
                </td>
                <td width="<?php echo $length2; ?>%" valign="top">
                    <div><strong>Name(CN)</strong></div>
                </td>
                <td width="<?php echo $length2; ?>%" valign="top">
                    <div><strong>Name(DE)</strong></div>
                </td>
            </tr>
       <?php
        $list = $this->getTplVar('list');
        if (is_array($list) && count($list) > 0){
            foreach ($list AS $article){

              echo '<tr>';
                //check box <label for="'.$article['id'].'" class="selectBoxLabel">'.$article['name_de'].'</label></b>
              echo '<td width="'.$length1.'%" valign="top"><div class="column"><input type="checkbox" name="articleId[]" class="selectBox"  value="'.$article['id'].'" id="'.$article['id'].'"></div></td>';
              echo '<td width="'.$length2.'%" valign="top"><div class="column">'.$article['ean'].'</div></td>';
              echo '<td width="'.$length2.'%" valign="top"><div class="column">'.$article['name_cn'].'</div></td>';
              echo '<td width="'.$length2.'%" valign="top"><div class="column">'.$article['name_de'].'</div></td>';

              echo '</tr>';
            }
        }

        ?>
            </tbody>
        </table>
        <input type="hidden" name="action" value="del" />
        <input value="Löschen" type="submit" />
        <!---

        <table cellpadding="0" cellspacing="0" class="btm-blk"><tbody><tr><td width="25px;"><input type="checkbox" value="BulkCheckAction" name="BkCkBm" id="BkCkBm240"><label class="g-hdn" for="BkCkBm240">Alle markieren</label></td><td><div class="BottomBulk"><b id="v4-My_38_24" class="bn-w bn-m bn-pad trsb-S"><i>Notiz hinzufügen</i><span id="spn_v4-My_38_24" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_24" name="BulkAddNote" value="Notiz hinzufügen" title="" type="button"><b id="txt_v4-My_38_24">Notiz hinzufügen</b></span></b><b id="v4-My_38_25" class="bn-w bn-m bn-pad trsb-S"><i>Löschen</i><span id="spn_v4-My_38_25" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_25" name="SubmitAction.BulkDelete" value="Löschen" title="" type="button"><b id="txt_v4-My_38_25">Löschen</b></span></b><b id="v4-My_38_26" class="bn-w bn-m bn-pad trsb-S"><i>Vergleichen</i><span id="spn_v4-My_38_26" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_26" name="SubmitAction.BulkCompare" value="Vergleichen" title="" type="submit"><b id="txt_v4-My_38_26">Vergleichen</b></span></b><input type="hidden" name="coaction" value="compare"><b id="v4-My_38_27" class="bn-w bn-m bn-pad trsb-S"><i>Auf die Liste</i><span id="spn_v4-My_38_27" class="bn-b trsb-b trsb-S"><input id="but_v4-My_38_27" name="Artikel zu Liste(n) hinzufügen" value="Auf die Liste" title="" type="button"><b id="txt_v4-My_38_27">Auf die Liste</b></span></b></div></td></tr></tbody></table>

         --->
    </form>

</div>

